package com.devframe.sysbase.model;

import java.util.ArrayList;
import java.util.List;

import com.devframe.sysbase.model.base.BaseTSysMenuStatic;




public class TSysMenuStatic extends BaseTSysMenuStatic {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public TSysMenuStatic () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public TSysMenuStatic (java.lang.String menuCode) {
		super(menuCode);
	}

/*[CONSTRUCTOR MARKER END]*/
    /**
     * getParentMenus
     * @return List 所有上级菜单集合
     * 
     */
    public List getParentMenus(){
        List list = new ArrayList();
        TSysMenuStatic parent = this.getParentMenu();
        while(parent!=null){
            list.add(0,parent);
            parent=parent.getParentMenu();
        }
        return list;
    }

    
}